{% load pretty_user %}
{% load zip %}
{% load points_diff %}
<p>
Meč koji ste igrali <b>{{ match.date_played|date }}</b> u <b>{{ match.date_played|time }}</b> je uneo
{{ user_entered|pretty_user:2 }} u sistem sa rezultatom <b>{{ match.result }}</b>. Komentare na meč možete
ostaviti na <a href="http://sport.mdcs.rs/mdcs/match/{{ match.id }}/">strani meča</a>.
<br/>
Kretanje poena:
<table width="60%">
	<thead>
		<tr>
			<th>Igrač</th>
			<th width="100px">Poeni</th>
			<th width="50px">Razlika</th>
		</tr>
	</thead>
	<tbody>
		{%for user, point_log in users|zip:all_points_log %}
		<tr>
			<td>{{ user|pretty_user:2 }}</td>
			{% if match.game_type == 1 %}
			<td>{{ point_log.points }} → {{ user.chess_points }}
			{% elif match.game_type == 2 %}
			<td>{{ point_log.points }} → {{ user.tf_points }}
			{% elif match.game_type == 3 %}
			<td>{{ point_log.points }} → {{ user.football_points }}
			{% elif match.game_type == 4 %}
			<td>{{ point_log.points }} → {{ user.basket_points }}
			{% else %}
			{% endif %}
			<td>
			{% if match.game_type == 1 %}
			{{ user.chess_points|points_diff:point_log.points }}
			{% elif match.game_type == 2 %}
			{{ user.tf_points|points_diff:point_log.points }}
			{% elif match.game_type == 3 %}
			{{ user.football_points|points_diff:point_log.points }}
			{% elif match.game_type == 4 %}
			{{ user.basket_points|points_diff:point_log.points }}
			{% else %}
			{% endif %}
			</td>
		</tr>
		{%endfor%}
	</tbody>
</table>
</p>
{% if recommended %}
<p>
Pošto je ovaj meč bio među preporučenim, broj bodova koji ste dobili se razlikuje od broja bodova koje
dobijate u <i>običnim</i> mečevima.
Za detalje pogledajte <a href="http://sport.mdcs.rs/mdcs/about/recommended/">objašnjenje</a> o
preporučenim mečevima.
</p>
{% endif %}

{% include "mail/footer.html" %}